package com.jiahao.material.services.Impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiahao.material.entity.Warehouse;
import com.jiahao.material.mapper.WarehouseMapper;
import com.jiahao.material.services.IWarehouseService;
import org.apache.ibatis.annotations.Many;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class WarehouseServiceImpl extends ServiceImpl<WarehouseMapper,Warehouse> implements IWarehouseService {

    @Autowired
    private WarehouseMapper warehouseMapper;

    @Override
    public IPage<Warehouse> getByPage(Page<Warehouse> page, Map<String, Object> map) {
        return warehouseMapper.getByPage(page,map);
    }

    @Override
    public List<Warehouse> getAll() {
        return warehouseMapper.getAll();
    }
}
